export const hasPermission = {
    install(Vue){
        Vue.directive('hasPermission',{
            bind (el, binding, vnode, oldVnode) {
               const perms =SessionStorage.get('perms')
                const value =binding.value
                if (!perms.includes(value)){
                    el.style.display='none'
                }
            }
        })
    }
}